#include "sys_main.h"
#include "input_manager.h"
#include "ui_manager.h"
#include "sys_input.h"
#include "sys_clock.h"

#define TAG "SYS_MAIN_INPUT"

void sys_key_input_handler(uint32_t key_event)
{
    if (esp_uptime_get_ms() > 600) {
        ui_manager_dispatch_key_event(key_event);
    } else {
        ESP_LOGI(TAG, "drop key workup %" PRId64, esp_uptime_get_ms());
    }
}
